﻿using Infrastructure.DDD;
using System.ComponentModel.DataAnnotations.Schema;

namespace Application.Entities
{
    [Table("job_operationqueue")]
    public class OperationQueue : Entity
    {
        public int JobId { get; set; }
        public int ServerId { get; set; }
        [Column(TypeName = "varchar(20)")]
        public OperationType Type { get; set; }
    }

    public enum OperationType
    {
        /// <summary>
        /// 新增
        /// </summary>
        Add,
        /// <summary>
        /// 修改
        /// </summary>
        Update,
        /// <summary>
        /// 启用
        /// </summary>
        Enable,
        /// <summary>
        /// 停用
        /// </summary>
        Disable,
        /// <summary>
        /// 删除
        /// </summary>
        Delete,
    }

}
